﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008E3 RID: 2275
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HeliobusChallengeLineup : IMessage<HeliobusChallengeLineup>, IMessage, IEquatable<HeliobusChallengeLineup>, IDeepCloneable<HeliobusChallengeLineup>, IBufferMessage
	{
		// Token: 0x17001CC8 RID: 7368
		// (get) Token: 0x060065EF RID: 26095 RVA: 0x00111E01 File Offset: 0x00110001
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HeliobusChallengeLineup> Parser
		{
			get
			{
				return HeliobusChallengeLineup._parser;
			}
		}

		// Token: 0x17001CC9 RID: 7369
		// (get) Token: 0x060065F0 RID: 26096 RVA: 0x00111E08 File Offset: 0x00110008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HeliobusChallengeLineupReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001CCA RID: 7370
		// (get) Token: 0x060065F1 RID: 26097 RVA: 0x00111E1A File Offset: 0x0011001A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HeliobusChallengeLineup.Descriptor;
			}
		}

		// Token: 0x060065F2 RID: 26098 RVA: 0x00111E21 File Offset: 0x00110021
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusChallengeLineup()
		{
		}

		// Token: 0x060065F3 RID: 26099 RVA: 0x00111E34 File Offset: 0x00110034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusChallengeLineup(HeliobusChallengeLineup other) : this()
		{
			this.avatarIdList_ = other.avatarIdList_.Clone();
			this.skillId_ = other.skillId_;
			this.groupId_ = other.groupId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060065F4 RID: 26100 RVA: 0x00111E81 File Offset: 0x00110081
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusChallengeLineup Clone()
		{
			return new HeliobusChallengeLineup(this);
		}

		// Token: 0x17001CCB RID: 7371
		// (get) Token: 0x060065F5 RID: 26101 RVA: 0x00111E89 File Offset: 0x00110089
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AvatarIdList
		{
			get
			{
				return this.avatarIdList_;
			}
		}

		// Token: 0x17001CCC RID: 7372
		// (get) Token: 0x060065F6 RID: 26102 RVA: 0x00111E91 File Offset: 0x00110091
		// (set) Token: 0x060065F7 RID: 26103 RVA: 0x00111E99 File Offset: 0x00110099
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillId
		{
			get
			{
				return this.skillId_;
			}
			set
			{
				this.skillId_ = value;
			}
		}

		// Token: 0x17001CCD RID: 7373
		// (get) Token: 0x060065F8 RID: 26104 RVA: 0x00111EA2 File Offset: 0x001100A2
		// (set) Token: 0x060065F9 RID: 26105 RVA: 0x00111EAA File Offset: 0x001100AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x060065FA RID: 26106 RVA: 0x00111EB3 File Offset: 0x001100B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HeliobusChallengeLineup);
		}

		// Token: 0x060065FB RID: 26107 RVA: 0x00111EC4 File Offset: 0x001100C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HeliobusChallengeLineup other)
		{
			return other != null && (other == this || (this.avatarIdList_.Equals(other.avatarIdList_) && this.SkillId == other.SkillId && this.GroupId == other.GroupId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060065FC RID: 26108 RVA: 0x00111F24 File Offset: 0x00110124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.avatarIdList_.GetHashCode();
			if (this.SkillId != 0U)
			{
				num ^= this.SkillId.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060065FD RID: 26109 RVA: 0x00111F8A File Offset: 0x0011018A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060065FE RID: 26110 RVA: 0x00111F92 File Offset: 0x00110192
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060065FF RID: 26111 RVA: 0x00111F9C File Offset: 0x0011019C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.GroupId);
			}
			this.avatarIdList_.WriteTo(ref output, HeliobusChallengeLineup._repeated_avatarIdList_codec);
			if (this.SkillId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.SkillId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006600 RID: 26112 RVA: 0x00112008 File Offset: 0x00110208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.avatarIdList_.CalculateSize(HeliobusChallengeLineup._repeated_avatarIdList_codec);
			if (this.SkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillId);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006601 RID: 26113 RVA: 0x00112074 File Offset: 0x00110274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HeliobusChallengeLineup other)
		{
			if (other == null)
			{
				return;
			}
			this.avatarIdList_.Add(other.avatarIdList_);
			if (other.SkillId != 0U)
			{
				this.SkillId = other.SkillId;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006602 RID: 26114 RVA: 0x001120D5 File Offset: 0x001102D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006603 RID: 26115 RVA: 0x001120E0 File Offset: 0x001102E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 16U)
				{
					if (num == 8U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
					if (num == 16U)
					{
						goto IL_3E;
					}
				}
				else
				{
					if (num == 18U)
					{
						goto IL_3E;
					}
					if (num == 72U)
					{
						this.SkillId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_3E:
				this.avatarIdList_.AddEntriesFrom(ref input, HeliobusChallengeLineup._repeated_avatarIdList_codec);
			}
		}

		// Token: 0x04002701 RID: 9985
		private static readonly MessageParser<HeliobusChallengeLineup> _parser = new MessageParser<HeliobusChallengeLineup>(() => new HeliobusChallengeLineup());

		// Token: 0x04002702 RID: 9986
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002703 RID: 9987
		public const int AvatarIdListFieldNumber = 2;

		// Token: 0x04002704 RID: 9988
		private static readonly FieldCodec<uint> _repeated_avatarIdList_codec = FieldCodec.ForUInt32(18U);

		// Token: 0x04002705 RID: 9989
		private readonly RepeatedField<uint> avatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04002706 RID: 9990
		public const int SkillIdFieldNumber = 9;

		// Token: 0x04002707 RID: 9991
		private uint skillId_;

		// Token: 0x04002708 RID: 9992
		public const int GroupIdFieldNumber = 1;

		// Token: 0x04002709 RID: 9993
		private uint groupId_;
	}
}
